//1.ecma Number Date RegExp Error XMLHttprequest 
//2.dom queryselect MouseEvent
//3.bom promise localstorage location cookie
//4.案例
//1.ecma Number Date RegExp Error XMLHttprequest 
// let b:Boolean = new Boolean(1)
// console.log(b)
// let n:Number = new Number(true)
// console.log(n)
// let s:String = new String('哔哩哔哩小小')
// console.log(s)
// let d:Date = new Date()
// console.log(d)
// let r:RegExp = new RegExp("^1")
// console.log(r)
// 以下两个有报错
// let e:Error = new Error("error!")
// console.log(e)
// let xhr:XMLHttpRequest = new XMLHttpRequest()
// console.log(xhr)
//2.dom queryselect MouseEvent
// DOM 和 BOM 的内置对象
// Document、HTMLElement、Event、NodeList 等
let body = document.body;
let allDiv = document.querySelectorAll('div');
let divEle = document.querySelectorAll("div, footer");
//读取div 这种需要类型断言 或者加个判断应为读不到返回null
let div = document.querySelector('div');
document.addEventListener('click', function (e) {
});
//3.bom promise localstorage location cookie
let local = localStorage;
let lo = location;
let promise = new Promise((resolve, reject) => resolve(1));
promise.then(r => {
    console.log(r);
});
let cookie = document.cookie;
